import React from 'react';
import { withRouter } from "react-router-dom";
import Login from './modules/Login';
import Layout from './modules/Layout';


const App = props => {
  const {location} = props;
  if (location?.pathname === '/login') {
    return (
      <div className='root-manager-container'>
        <Login />
      </div>
    );
  }
  return (
    <div className='root-manager-container'>
      <Layout />
    </div>
  );
};

export default withRouter(App);

